package cn.edu.sgu.www.mhxysy.dto.qiling;

import cn.edu.sgu.www.mhxysy.consts.CustomMessages;
import cn.edu.sgu.www.mhxysy.dto.DataTransferObject;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;

/**
 * @author 沐雨橙风ιε
 * @version 1.0
 */
@Data
@ApiModel
public class QilingCategoryDTO implements DataTransferObject {

	@ApiModelProperty(value = "ID")
	private Integer id;

	/**
	 * 器灵名称
	 */
	@NotBlank(message = "器灵名称" + CustomMessages.NOT_NULL)
	@ApiModelProperty(value = "器灵名称", required = true)
	private String name;

	/**
	 * 器灵类型
	 */
	@Positive(message = "器灵类型" + CustomMessages.ILLEGAL)
	@NotNull(message = "器灵类型" + CustomMessages.NOT_NULL)
	@ApiModelProperty(value = "器灵类型", required = true)
	private Integer type;

	/**
	 * 描述信息
	 */
	@NotBlank(message = "描述信息" + CustomMessages.NOT_NULL)
	@ApiModelProperty(value = "描述信息", required = true)
	private String note;

	/**
	 * 器灵等级
	 */
	@Range(min = 60, max = 100, message = "器灵等级" + CustomMessages.ILLEGAL)
	@NotNull(message = "器灵等级" + CustomMessages.NOT_NULL)
	@ApiModelProperty(value = "器灵等级", required = true)
	private Integer grade;

	/**
	 * 装备类型ID
	 */
	@Positive(message = "装备类型" + CustomMessages.ILLEGAL)
	@NotNull(message = "装备类型" + CustomMessages.ID_NOT_NULL)
	@ApiModelProperty(value = "装备类型ID", required = true)
	private Integer equipmentId;
}